package com.ww.prodiver.controller;

import com.ww.service.IndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName:
 * @author:
 * @Description:
 * @Date
 **/
@RestController
@RefreshScope
public class HelloController {
    @Autowired
    IndexService indexService;

    @GetMapping("/index/findIndex")
    public String findIndex(){
        return indexService.findIndex();
    }
}
